Release 10.1A: OpenEdge Data Management:
SQL Reference


ROUND

Returns the rounded value of a numeric expression.

Syntax

ROUND ( num_expression [, rounding_factor ] ) ; 

Example

This example illustrates four calls to the ROUND function:

-- rounding_factor 2 returns 2953861.83
ROUND ( 2953861.8320, 2 )
 
 
-- rounding_factor -2 returns 2953900.00
ROUND ( 2953861.8320, -2 )
 
 
-- rounding_factor 0 returns 2953862.00
ROUND ( 2953861.8320, 0 )
 
 
-- No rounding_factor argument also returns 2953862.00
ROUND ( 2953861.8320 ) 

In each case the num_expression is 2953861.8320. In the first call the rounding_factor is 2, in the second call the rounding_factor is -2, in the third call the rounding_factor is 0, and in the fourth call no rounding_factor is specified.

Notes

Compatibility

Progress extension


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095